<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Lista de Turmas</title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/estilo.css">
</head>
<body>
	<%@include file="/view/private/menu_principal.jsp"%>
	<%@include file="/view/private/turma/menu_top.jsp"%>

	<div class="table">
		<table class="table_lista">
			<p>Lista de Turmas</p>
			<tr>
				<th>Id</th>
				<th>Nome Turma</th>
				<th>Materia</th>
				<th>Professor</th>
				<th>Qtde Alunos</th>
				<th>Excluir</th>
				<th>Alterar</th>
			</tr>
			<c:forEach items="${lista}" var="turma">
				<tr>

					<td class="wrap"><c:out value="${turma.id}" /></td>
					<td class="wrap"><c:out value="${turma.nome}" /></td>
					<td class="wrap"><c:out value="${turma.nomeMateria}" /></td>
					<td class="wrap"><c:out value="${turma.nomeProfessor}" /></td>
					<td class="wrap"><c:out value="${turma.qtdeAluno}" /></td>

					<td><a
						href="turmaDelete?action=confirmDelete&nomeTurma=<c:out value="${turma.nome}"/>"><img
							class="icons" src="<%=request.getContextPath()%>/img/delete.png"
							title="Excluir o Cadastro" /></a></td>
					<td><a
						href="turmaFrmInsert?action=frmUpdate&id=<c:out value="${turma.id}"/>&nomeTurma=<c:out value="${turma.nome}"/>"><img
							class="icons" src="<%=request.getContextPath()%>/img/edit.png"
							title="Alterar o Cadastro" /></a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>